<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>个人成绩</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <style>
        .span2 a{
            display: block;
            text-align: center;
            font-size: 17px;
            line-height: 50px;
        }
        a:hover{
            text-decoration: none;
            background: #999999;
        }
    </style>
</head>
<body>
<div class="container-fluid" style="margin-top: 50px;">
    <div class="row-fluid">
        <div class="span12">
            <div class="row-fluid">
                <div class="span4">
                </div>
                <div class="span4">
                    <h2 class="text-center">
                        欢迎进入学生端
                    </h2>
                </div>
                <div class="span4">
                    <a th:href="@{/}" class="btn" style="float: right">退出</a>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2" style="margin-top: 50px">
            <ul class="unstyled">
                <li>
                    <div class="md-end-block md-p md-focus">
                        <a th:href="@{/indexUI}" class="md-plain">课程信息</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/information}" class="md-plain">个人信息</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/courses}" class="md-plain">学生选课</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/submit}" class="md-plain">提交作业</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/achievement}" class="md-plain md-expand" style="background: #999999">个人成绩</a>
                    </div>
                </li>
            </ul>
        </div>
        <div class="span8"  style="margin-top: 50px">
            <table class="table">
                <thead>
                <tr>
                    <th>
                        课程名称
                    </th>
                    <th>
                        平时成绩
                    </th>
                    <th>
                        末考成绩
                    </th>
                    <th>
                        综合成绩
                    </th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="course : ${courseResults}" class="success">
                    <td th:text="${course.coursename}">
                    </td>
                    <td th:text="${course.usualgrade}">
                    </td>
                    <td th:text="${course.finalgrade}">
                    </td>
                    <td th:text="${course.syntheticalgread}">
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="span2">

        </div>
    </div>
</div>
</body>
</html>